import type { TableColumn } from '@/components/core/dynamic-table';

export type TableListItem = API.TableListPageResultItem;
export type TableColumnItem = TableColumn<TableListItem>;
const operationParams = [
  {
    label: '未过期',
    value: 1,
  },
  {
    label: '已过期',
    value: 2,
  },
];
const operationParams2 = [
  {
    label: '送检',
    value: 1,
  },
  {
    label: '现场取样',
    value: 2,
  },
];
export const baseColumns: TableColumn[] = [
  {
    title: '关键字',
    align: 'left',
    dataIndex: 'keyword',
    hideInTable: true,
    formItemProps: {
      labelWidth: 55,
      componentProps: () => {
        return {
          placeholder: '可输入编号、名称搜索',
          disabledLabelWidth: true,
        };
      },
    },
  },
  {
    title: '报告编号',
    align: 'left',
    dataIndex: 'userNum',
    hideInSearch: true,
  },
  {
    title: '报告名称',
    align: 'left',
    dataIndex: 'userLogin',
    hideInSearch: true,
  },
  {
    title: '任务月份',
    align: 'left',
    dataIndex: 'userName',
    hideInSearch: true,
  },
  {
    title: '编制人',
    align: 'left',
    dataIndex: 'action',
    hideInSearch: true,
  },
  {
    title: '提交时间',
    align: 'left',
    dataIndex: 'operationTime',
    hideInSearch: true,
  },
];

export const baseColumns2: TableColumn[] = [
  {
    title: '关键字',
    align: 'left',
    dataIndex: 'keyword',
    hideInTable: true,
    formItemProps: {
      labelWidth: 55,
      componentProps: () => {
        return {
          placeholder: '可输入编号、名称搜索',
          disabledLabelWidth: true,
        };
      },
    },
  },
  {
    title: '报告编号',
    align: 'left',
    dataIndex: 'userNum',
    hideInSearch: true,
  },
  {
    title: '报告名称',
    align: 'left',
    dataIndex: 'userLogin',
    hideInSearch: true,
  },
  {
    title: '任务月份',
    align: 'left',
    dataIndex: 'userName',
    hideInSearch: true,
  },
  {
    title: '编制人',
    align: 'left',
    dataIndex: 'action',
    hideInSearch: true,
  },
  {
    title: '提交时间',
    align: 'left',
    dataIndex: 'operationTime',
    hideInSearch: true,
  },
];
